﻿<script type="text/javascript" src="~/Scripts/page/UserListPartial.js"></script>

<input type="hidden" name="txt_UserID" id="txt_UserID" />
<input class="easyui-validatebox" type="text" id="txt_UserName" name="txt_UserName" />
<a href="#" class="easyui-linkbutton" onclick="GetUserList()" plain="true">选择</a>


<div id="userdlg" class="easyui-dialog" style="width: 480px; height: 380px; padding: 10px 10px"
    closed="true" buttons="#userdlg-buttons" modal="true" resizable="true">

    <table id="userlist" class="easyui-datagrid" width="100%" toolbar="#usertoolbar">
    </table>
    <div id="usertoolbar">
        <table>
            <tr>
                <td>
                    <input class="easyui-validatebox" type="text" id="userName" name="userName"
                        value="用户名称" onfocus="if(value==defaultValue){value='';this.style.color='#000'}" onblur="if(!value){value=defaultValue;this.style.color='#999'}"style="color:#999999" />
                </td>
                <td>
                    <input value="请选择部门" 
                        id="comb_Search_DepartmentParentID" class="easyui-combotree"
                        data-options="url:'/Department/GetTreeList',required:true,
                        onSelect: function(rec){  
                            $('#DepartmentParentID').val(rec.id); }" />
                </td>
                <td>
                    <a href="#" class="easyui-linkbutton" iconcls="icon-search" onclick="Search()">查询</a>
                </td>
            </tr>
        </table>
    </div>

    <div id="userdlg-buttons">
        <a href="#" class="easyui-linkbutton" iconcls="icon-ok" onclick="SelectUser()">确定</a>
        <a href="#" class="easyui-linkbutton" iconcls="icon-cancel" onclick="javascript:$('#userdlg').dialog('close')">取消</a>
    </div>
</div>

